<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>zxxhouse: src/com/zxx/common/Common.java源文件</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />



</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">zxxhouse
   &#160;<span id="projectnumber">1.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- 制作者 Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>首页</span></a></li>
      <li><a href="annotated.html"><span>类</span></a></li>
      <li class="current"><a href="files.html"><span>文件</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>文件列表</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">src/com/zxx/common/Common.java</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="keyword">package </span>com.zxx.common;
<a name="l00002"></a>00002 <span class="keyword">import</span> android.content.Context;
<a name="l00003"></a>00003 
<a name="l00004"></a>00004 <span class="keyword">import</span> com.soufang.ui.R;
<a name="l00005"></a>00005 
<a name="l00011"></a><a class="code" href="classcom_1_1zxx_1_1common_1_1_common.html">00011</a> <span class="keyword">public</span> <span class="keyword">class </span><a class="code" href="classcom_1_1zxx_1_1common_1_1_common.html" title="公共通用类，目前包含了消息和字符串">Common</a> {
<a name="l00012"></a>00012                 
<a name="l00013"></a>00013         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MAXSQLDATANUM = 6;
<a name="l00014"></a>00014         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_INSERTSQL                = 0x124;<span class="comment">//第一次进入时候插入数据库数据，以后每次都是查询数据按id升序排列</span>
<a name="l00015"></a>00015         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SELECTSQLAREA            = 0x125; <span class="comment">//按小区查询数据</span>
<a name="l00016"></a>00016         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SELECTTOTALSQLPRICE  = 0x126; <span class="comment">//按总价查询</span>
<a name="l00017"></a>00017         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SORTBYPRICEH_L           = 0x127; <span class="comment">//按单价从高到低排列</span>
<a name="l00018"></a>00018         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SORTBYPRICEL_H           = 0x128; <span class="comment">//按单价从低到高排列</span>
<a name="l00019"></a>00019         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SORTBYYEARH_L            = 0x129; <span class="comment">//按年份从高到低排列</span>
<a name="l00020"></a>00020         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SORTBYYEARL_H            = 0x130; <span class="comment">//按年份从低到高排列</span>
<a name="l00021"></a>00021         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SORTBYAREAH_L            = 0x131; <span class="comment">//按面积由大到小排列</span>
<a name="l00022"></a>00022         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SORTBYAREAL_H            = 0x132; <span class="comment">//按面积由小到大排列</span>
<a name="l00023"></a>00023         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SORTBYALL                = 0x133; <span class="comment">//不限制，默认排序（id）</span>
<a name="l00024"></a>00024         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SELECTBYHOUSETYPE        = 0x134; <span class="comment">//按户型选择</span>
<a name="l00025"></a>00025         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SELECTBYZX                       = 0x135; <span class="comment">//按装修类型选择</span>
<a name="l00026"></a>00026         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keyword">final</span> <span class="keywordtype">int</span> MESSAGE_SELECTBYPMPRICE          = 0x136; <span class="comment">//按单价选择</span>
<a name="l00027"></a>00027         
<a name="l00028"></a>00028          <span class="keyword">private</span> <span class="keyword">static</span> <span class="keywordtype">int</span>[] departmentIds = <span class="keyword">new</span> <span class="keywordtype">int</span>[] {
<a name="l00029"></a>00029                           R.string.all, R.string.gthy, R.string.lxxc, R.string.zgc, R.string.jtxc,
<a name="l00030"></a>00030                           R.string.jnsd, R.string.cxxc, R.string.xtxq, R.string.jzxq, R.string.mjxy,
<a name="l00031"></a>00031                           R.string.hfhy
<a name="l00032"></a>00032           };
<a name="l00033"></a>00033          
<a name="l00034"></a>00034          <span class="keyword">private</span> <span class="keyword">static</span> <span class="keywordtype">int</span>[] ZXArr = <span class="keyword">new</span> <span class="keywordtype">int</span>[] {
<a name="l00035"></a>00035                           R.string.simple,
<a name="l00036"></a>00036                           R.string.normal,R.string.luxery
<a name="l00037"></a>00037           };
<a name="l00038"></a>00038          
<a name="l00039"></a>00039          
<a name="l00040"></a>00040         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">int</span> GetDepartMenid(<span class="keywordtype">int</span> index){
<a name="l00041"></a>00041                 <span class="keywordflow">return</span> departmentIds[index];
<a name="l00042"></a>00042         }
<a name="l00043"></a>00043         
<a name="l00044"></a>00044         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">int</span> GetLengOFDepartMen(){
<a name="l00045"></a>00045                 <span class="keywordflow">return</span> departmentIds.length;
<a name="l00046"></a>00046         }
<a name="l00047"></a>00047         
<a name="l00048"></a>00048         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">int</span> GetZXid(<span class="keywordtype">int</span> index){
<a name="l00049"></a>00049                 <span class="keywordflow">return</span> ZXArr[index];
<a name="l00050"></a>00050         }
<a name="l00051"></a>00051         
<a name="l00052"></a>00052         <span class="keyword">public</span> <span class="keyword">static</span> <span class="keywordtype">int</span> GetLengOFZX(){
<a name="l00053"></a>00053                 <span class="keywordflow">return</span> ZXArr.length;
<a name="l00054"></a>00054         }
<a name="l00055"></a>00055         
<a name="l00056"></a>00056 }
</pre></div></div><!-- contents -->


<hr class="footer"/><address class="footer"><small>
Generated at 2015年二月4日 星期三 18:11:09 for zxxhouse by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
